package com.spzx.product.mapper;

import com.spzx.product.api.domain.SkuPrice;
import com.spzx.product.api.domain.SkuQuery;
import com.spzx.product.api.domain.vo.ProductSkuVo;
import com.spzx.product.api.domain.ProductSku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 商品sku Mapper 接口
 * </p>
 *
 * @author lee
 * @since 2024-07-13
 */
public interface ProductSkuMapper extends BaseMapper<ProductSku> {


    Integer updateProductSku(List<ProductSku> productSkuList);


    /**
     *
     * @param ids 商品id列表
     * @return ProctSkuId列表
     */
    List<Long> selectProductSkuId(List<Long> ids);


    List<ProductSku> getTopSale();

    List<ProductSkuVo> getProductList(SkuQuery skuQuery);

    SkuPrice getSkuPrice(Integer skuId);

    List<SkuPrice> getSkuPriceList(List<Long> skuIdList);
}
